<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Magic Box</title>
    <link rel="stylesheet" href="./css/cube.css" />
  </head>
  <body>
    <style>
      .cube {
        animation: rotate 14s linear infinite;
      }

      .face {
        font-size: calc(var(--length) / 5);
        font-weight: bold;
        opacity: 0.8;
      }

      .bottom::after {
        display: none;
      }
    </style>

    <div class="cube">
      <div class="face front" style="--bg-color: #e2e2e2">Front</div>
      <div class="face back" style="--bg-color: #e2e2e2">Back</div>
      <div class="face left" style="--bg-color: #f0f0f0">Left</div>
      <div class="face right" style="--bg-color: #f0f0f0">Right</div>
      <div class="face top" style="--bg-color: #ffffff">Top</div>
      <div class="face bottom" style="--bg-color: #ffffff">Bottom</div>
    </div>
  </body>
</html>
